﻿@using DIS.Infrastructure.Entities.Entity;
@using DIS.Infrastructure.Entities.Enum;
@{
    ViewBag.Title = "项目列表";
    Layout = "~/Views/Shared/_Layout.cshtml";
    ItemListBox<Project> data = ViewBag.Projects;
}
<table width="98%" border="0" align="center"  cellpadding="3" cellspacing="1"  bgcolor="#D6D6D6">
    <tr>
        <td height="19" colspan="7"  background="/content/img/tbg.gif" bgcolor="#E7E7E7">
            <table width="96%" border="0" cellspacing="1" cellpadding="1">
                <tr>
                    <td style="padding-left: 10px;">
                        <b><strong>项目列表</strong></b>
                    </td>
                    <td align="right">
                        <b><strong><a href="/Systemset/ProjectDetail">新增项目</a></strong></b>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr bgcolor="#FBFCE2">
        <td width="40%" height="24" align="center">
            项目编号
        </td>
        <td width="50%" align="center">
            项目名称
        </td> 
        <td width="10%" align="center">
            管理项
        </td>
    </tr>
    @{
        if (data != null && data.Data != null && data.Data.Count > 0)
        { 
            foreach (var item in data.Data)
            {
                 
                <tr bgcolor="#FFFFFF" align="center" class="hover">
                <td align="center">@item.ProjectCode</td>
                <td align="center">@item.ProjectName</td>
                <td align="center"><a href="/systemset/ProjectDetail?Id=@item.Id" ><u>编辑</u></a> </td>
                </tr>
            }
        }
    }
    <tr><td colspan="7" align="right">@Html.Raw(data.PageItemSegment)</td></tr>
</table>
